package team.xiaobaiya.gptchatrobot.service.impl;

import org.springframework.stereotype.Service;
import team.xiaobaiya.gptchatrobot.entity.database.UserInfo;
import team.xiaobaiya.gptchatrobot.mapper.UserInfoMapper;
import team.xiaobaiya.gptchatrobot.service.UserInfoService;

/**
 * @author Feng Yingnan
 * @since 2023/12/15
 */
@Service
public class UserInfoServiceImpl implements UserInfoService {

    private final UserInfoMapper userInfoMapper;

    public UserInfoServiceImpl(UserInfoMapper userInfoMapper) {
        this.userInfoMapper = userInfoMapper;
    }

    @Override
    public UserInfo selectByUserKey(String userKey) {
        return userInfoMapper.selectByUserKey(userKey);
    }
}
